<style scoped>
    .expand-row{
        margin-bottom: 16px;
    }
</style>
<template>
    <Table
            ref="selection"

            :columns="columns"
            :data="list"

    ></Table>
<!--    <div>
        <Row class="expand-row">
            <i-col span="8">
            <span class="expand-key">Job: </span>
            <span class="expand-value">{{ row.job }}</span>
            </i-col>
            <i-col span="8">
            <span class="expand-key">Interest: </span>
            <span class="expand-value">{{ row.interest }}</span>
            </i-col>
            <i-col span="8">
            <span class="expand-key">Birthday: </span>
            <span class="expand-value">{{ row.birthday }}</span>
            </i-col>
        </Row>
        <Row>
            <i-col span="8">
            <span class="expand-key">Favorite book: </span>
            <span class="expand-value">《{{ row.book }}》</span>
            </i-col>
            <i-col span="8">
            <span class="expand-key">Favorite movie: </span>
            <span class="expand-value">{{ row.movie }}</span>
            </i-col>
            <i-col span="8">
            <span class="expand-key">Favorite music: </span>
            <span class="expand-value">{{ row.music }}</span>
            </i-col>
        </Row>
    </div>-->
</template>
<script>
    import Cookies from 'js-cookie';
    import Util from '../../../libs/util';
    export default {
        props: {
            row: Object
        },
        data () {
            return {
                columns: [
                    {
                        title: '规格ID',
                        key: 'spec_id'
                    },
                    {
                        title: '商品名称',
                        key: 'product_name',
                    },
                    {
                        title: '规格详情',
                        key: 'spec_name_full',
                    },
                    {
                        title: '单价',
                        key: 'unit_money'
                    },
                    {
                        title: '数量',
                        key: 'num'
                    }
                ],
                list: this.row.purchase_specs,
                admin_type: Cookies.get('admin_type')
            };
        },
        methods: {}
    };
</script>
